<?php

$data = file_get_contents("https://www.jb51.net/list/list_97_1.htm");

$data = mb_convert_encoding($data, "UTF-8", "GBK");

$preg = "/<DT><span>日期:(.+?)<\/span><a href=\"(.+?)\" title=\"(.+?)\" target=\"_blank\">.+?<\/a><\/DT>/";

# $preg = "/<DT><span>/";


// <DT><span>日期:2018-12-04</span><a href="/article/152022.htm" title="Python随机生成身份证号码及校验功能" target="_blank">Python随机生成身份证号码及校验功能</a></DT>


$c = preg_match_all($preg,$data,$out);


var_dump($c,$out);
